package com.yfp.operation.service.impl;

import com.yfp.operation.domain.WithdrawRule;
import com.yfp.operation.mapper.WithdrawRuleMapper;
import com.yfp.operation.service.WithdrawRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 提现规则
 *
 * @CreateDate: 2024/6/24 11:20
 * @UpdateUser:
 * @UpdateDate: 2024/6/24 11:20
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Service
public class WithdrawRuleServiceImpl implements WithdrawRuleService {
    @Autowired
    private WithdrawRuleMapper withdrawRuleMapper;
    @Override
    public WithdrawRule findById(Long id) {
        return withdrawRuleMapper.findById(id);
    }

    @Override
    public void save(WithdrawRule withdrawRule) {
        if (null == withdrawRule.getId()){
            withdrawRuleMapper.add(withdrawRule);
        }else {
            withdrawRuleMapper.edit(withdrawRule);
        }
    }
}
